import httpRequest from "@/http"
import { type MyResponseType } from "@/bean/base/response";
import { type MyPageResponseType } from "@/bean/base/page";
import { MyUserType } from "@/bean/base/user";


export const userListApi = (params:Object) => {
    return httpRequest.post<MyResponseType<MyPageResponseType<MyUserType>>>("/comUser/list",params);
}


export const addUserApi = (params:Object) => {
    return httpRequest.post<MyResponseType<object>>("/comUser/add",params);
}


export const updateUserApi = (params:Object) => {
    return httpRequest.post<MyResponseType<object>>("/comUser/update",params);
}

export const delUserApi = (params:Number) => {
    return httpRequest.postLink<MyResponseType<object>>(`/comUser/delete`,params);
}